<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>浏览记录</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span>绑定记录查询 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="page-container">
<%-- <form action="<%=basePath %>BindAction.action" method="post"> --%>
	<form action="<%=basePath %>QueryBindAction.action" method="post" class="form form-horizontal">
	<div class="text-l"><!--  监护人手机号码： -->
		<!-- <input type="text" class="input-text" style="width:250px" placeholder="" id="" name="">
		<button type="submit" class="btn btn-success" id="" name="binder"><i class="Hui-iconfont">&#xe665;</i> 搜记录</button> -->
		<!-- <input class="btn btn-primary radius" type="submit" name="binder" /> -->
			<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>监护人手机号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="填写正确的手机号码" id="binder" name="binder"><s:fielderror fieldName="queryError"/>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;查询记录&nbsp;&nbsp;">
			</div>
		</div>
	</div>
 	<div class="mt-50">
		<table class="table table-border table-bordered table-hover table-bg ">
			
			<thead>
				<tr class="text-c">
					<th width="80">序号</th>
					<th width="100">被监护人</th>
					<th width="100">监护人</th>
					<th width="100">绑定时间</th>
				</tr>
			</thead>
						
 			<s:iterator value="#request.list" id="watch" status="s">
			<tbody>
				<tr class="text-c">
			
					<td><s:property value="#s.index+1" /></td>
					<td><s:property value="#watch.username" /></td>
					<td><s:property value="#watch.binder" /></td>
					<td><s:property value="#watch.bindtime" /></td>
			</tbody>
			 </s:iterator>
		</table>
	</div>
	</form>
</div>

<script type="text/javascript">
	 function unBind(username){
		alert("确定要取消绑定吗?");
		$.ajax({
			method:"post",
			url:"<%=basePath %>UnBindAction.action",
			//data:"username",
			success:function(result){
				if(result.success){
					alert("取消绑定成功!");
				}else{
					alert("取消绑定失败!");
				}
			}
		});
		
	} 
	
	 </script> 

<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script> 
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript">
$('.table-sort').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0,6]}// 制定列不参与排序
	]
});
</script>
</body>
</html>